import Vue from 'vue'
import VueRouter from 'vue-router'

//组件区域
import Login from '@/views/Login.vue'
import Gain from '@/views/Gain.vue'
import Text from '@/views/Text.vue'
import List from '@/views/List.vue'
import NotFond from '@/views/NotFond.vue'

Vue.use(VueRouter)
const router = new VueRouter({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/Login',
    },
    {
      path: '/login',
      component: Login,
      name: 'login33',
    },
    {
      path: '/gain',
      component: Gain,
    },
    {
      path: '/text',
      component: Text,
    },
    {
      path: '/list',
      component: List,
    },
    {
      path: '*',
      component: NotFond,
    },
  ],
})

export default router
